﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EntityModel;

namespace Business
{
    public class ConsolidationPoints : BusinessBase<ConPoint, UserModel>
    {
        public Result<ConPoint> GetAllConsolidationAvailable()
        {
            var conPointRep = this.retreiveHelper.GetRepositoryWithoutTracking<ConPoint>();
            var result = new Result<ConPoint>();

            result.EntityList = conPointRep.Where(t => t.IsDisplayed ?? false).ToList();
            result.TotalRecords = result.EntityList.Count;

            return result;
        }
    }
}
